package cn.iocoder.yudao.module.member.enums.conf;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 贵金属交易 - 返佣节点枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum RebateActionTypeEnum implements ArrayValuable<Integer> {

    PRICE_SETTLEMENT(1, "结价时返佣"),
    MATERIAL_SETTLEMENT(2, "结料时返佣"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(RebateActionTypeEnum::getType).toArray();

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 描述
     */
    private final String desc;

    @Override
    public Integer[] array() {
        return new Integer[0];
    }
} 